﻿/*
 * Created by SharpDevelop.
 * User: fred
 * Date: 27/03/2011
 * Time: 14:07
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;

using GalaSoft.MvvmLight.Messaging;
using MetaVideoEditorEvolved.Messages;

namespace MetaVideoEditorEvolved
{
	/// <summary>
	/// Interaction logic for CreateMediaFolderWindow.xaml
	/// </summary>
	public partial class CreateMediaFolderWindow : Window
	{
		public CreateMediaFolderWindow()
		{
			InitializeComponent();
			
			Messenger.Default.Register<CloseMessage>(this, (message) =>
            {
                if (message.WindowToClose == WindowType.CreateMediaFolderWindow)
                {
                    this.Close();
                }
            });

            this.Owner = System.Windows.Application.Current.MainWindow;
		}
	}
}